<form action="{{ submitUrl }}" method=post><input name=id value="{{ article.id }}" type=hidden> {% if column != None %}
    <div style=margin:10px><label>栏目:</label> {{ column.title }}</div>
    <input name=colid value="{{ column.id }}" type=hidden>
    <hr>
    {% endif %} <input name=content value=" {{ article.content }}" type=hidden id=cont>
    <div style=margin:10px><label>标题</label> <input name=title value="{{ article.title }}"
                                                    style=height:30px;width:500px></div>
    <div style=margin:10px><label>内容</label>
        <div class=toolbar id=editor>{{ article.content | safe }}</div>
    </div>
    <div style=margin:10px><label>排序</label> <input name=sort value="{{ article.sort }}" style=height:30px;width:300px>
    </div>
    <div style=margin:10px><label>时间</label> <input name=time value="{{ article.time }}" style=height:30px;width:300px>
    </div>
    <div style=margin:10px><label>是否结束</label> <input name=end value=" {{ article.end }}" style=height:30px;width:300px>
    </div>
    <button id=submit>提交</button>
</form>
<script>
    var E=window.wangEditor,editor=new E("#editor");editor.customConfig.customUploadImg=function(o,t){var n=new FormData;n.append("f",o[0]),$.ajax({type:"POST",url:"/upload",data:n,contentType:!1,processData:!1,success:function(o){t(o)}})};var cont=$("#cont");editor.customConfig.onchange=function(o){cont.val(o)},editor.create()
</script>